package com.cadre.basic.thread.test;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class MyCallable2 implements Callable<String> {

    private String photo;

    public MyCallable2(String photo) {
        this.photo = photo;
    }

    @Override
    public String call() throws Exception {

        try {
            System.out.println(Thread.currentThread().getName()+"HK线程");
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "HK:U09DDD"+photo;
    }
}
